import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { MapSDominionServiceHelper } from "./MapSDominionServiceHelper";
import { DominionId } from "./DominionId";
type int = number;
//class SDominionInfo
    
    export  class SDominionInfo extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SDominionInfo();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            this.mainId.__write(arg1);
            arg1.writeInt(this.mainNum);
            MapSDominionServiceHelper.write(arg1, this.assistIds);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.mainId = new DominionId();
            this.mainId.__read(arg1);
            this.mainNum = arg1.readInt();
            this.assistIds = MapSDominionServiceHelper.read(arg1);
            return;
        }

        public /* const */_type: int=2065;

        public /* var */mainId: DominionId;

        public /* var */mainNum: int;

        public /* var */assistIds: Map<any, any> /* flash.utils.Dictionary */;

        public static /* var */_regist: SDominionInfo;
    }

            SDominionInfo._regist = new SDominionInfo(true);
        